package com.lingyu.jsjx.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lingyu.jsjx.mapper.SupervisorEvaluationMapper;
import com.lingyu.jsjx.domain.SupervisorEvaluation;
import com.lingyu.jsjx.service.ISupervisorEvaluationService;

/**
 * 督导评价Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
@Service
public class SupervisorEvaluationServiceImpl  extends ServiceImpl<SupervisorEvaluationMapper, SupervisorEvaluation> implements ISupervisorEvaluationService
{
    @Autowired
    private SupervisorEvaluationMapper supervisorEvaluationMapper;

    /**
     * 查询督导评价
     * 
     * @param supervisorEvalId 督导评价主键
     * @return 督导评价
     */
    @Override
    public SupervisorEvaluation selectSupervisorEvaluationBySupervisorEvalId(Long supervisorEvalId)
    {
        return supervisorEvaluationMapper.selectSupervisorEvaluationBySupervisorEvalId(supervisorEvalId);
    }

    /**
     * 查询督导评价列表
     * 
     * @param supervisorEvaluation 督导评价
     * @return 督导评价
     */
    @Override
    public List<SupervisorEvaluation> selectSupervisorEvaluationList(SupervisorEvaluation supervisorEvaluation)
    {
        return supervisorEvaluationMapper.selectSupervisorEvaluationList(supervisorEvaluation);
    }

    /**
     * 新增督导评价
     * 
     * @param supervisorEvaluation 督导评价
     * @return 结果
     */
    @Override
    public int insertSupervisorEvaluation(SupervisorEvaluation supervisorEvaluation)
    {
        return baseMapper.insert(supervisorEvaluation);
    }

    /**
     * 修改督导评价
     * 
     * @param supervisorEvaluation 督导评价
     * @return 结果
     */
    @Override
    public int updateSupervisorEvaluation(SupervisorEvaluation supervisorEvaluation)
    {

        return baseMapper.updateById(supervisorEvaluation);
    }

    /**
     * 批量删除督导评价
     * 
     * @param supervisorEvalIds 需要删除的督导评价主键
     * @return 结果
     */
    @Override
    public int deleteSupervisorEvaluationBySupervisorEvalIds(Long[] supervisorEvalIds)
    {
        return supervisorEvaluationMapper.deleteSupervisorEvaluationBySupervisorEvalIds(supervisorEvalIds);
    }

    /**
     * 删除督导评价信息
     * 
     * @param supervisorEvalId 督导评价主键
     * @return 结果
     */
    @Override
    public int deleteSupervisorEvaluationBySupervisorEvalId(Long supervisorEvalId)
    {
        return baseMapper.deleteById(supervisorEvalId);
    }
}
